package com.example.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order")
@ApiModel(value="Order对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "cid", type = IdType.AUTO)
    private Integer cid;

    @ApiModelProperty(value = "采购企业")
    private String business;

    @ApiModelProperty(value = "总价")
    private String totalPrice;

    @ApiModelProperty(value = "配送人")
    private String delivery;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "采购方id")
    private Integer pid;

    @ApiModelProperty(value = "供货方id")
    private Integer oid;

    public Order() {
    }

    public Order(Integer cid, String business, String totalPrice, String delivery, Integer status, Integer pid, Integer oid) {
        this.cid = cid;
        this.business = business;
        this.totalPrice = totalPrice;
        this.delivery = delivery;
        this.status = status;
        this.pid = pid;
        this.oid = oid;
    }

    public Order(String business, String totalPrice, String delivery, Integer status, Integer pid, Integer oid) {
        this.business = business;
        this.totalPrice = totalPrice;
        this.delivery = delivery;
        this.status = status;
        this.pid = pid;
        this.oid = oid;
    }
}
